﻿@using KRM.Core
@model KnowledgeBase
@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
    IEnumerable<KnowledgeBase> otherPost = ViewBag.OtherPost;
}

<div class="container-fluid">
    <div class="box">
        <div class="box-title">
            <h3>@Model.Title</h3>
            <a href="/knowledgebase" title="Back" class="btn pull-right" style="width: 50px">Back</a>
            <a href="/knowledgebase/item/@Model.Id" title="Edit" class="btn btn-primary pull-right" style="width: 80px; margin-right: 10px">Edit</a>
        </div>
        <div class="box-content">
            @Html.Raw(Model.Content)
        </div>
        <div class="other-news">
            <h4>Other post: </h4>
            <ul>
                @foreach (var item in otherPost)
                {
                    <li>
                        <a href="/knowledgebase/view/@item.Id" title="@item.Title">@item.Title</a>
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
